<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the Oracle client library version</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.oci-client-version" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">oci_client_version</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.7, PHP 7, PECL OCI8 &gt;= 1.4.6)</p><p class="refpurpose"><span class="refname">oci_client_version</span> &mdash; <span class="dc-title">Returns the Oracle client library version</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.oci-client-version-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>oci_client_version</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">string</span></div>

  <p class="para rdfs-comment">
   Returns a string containing the version number of the Oracle C client library that PHP is linked with.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.oci-client-version-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
    None
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.oci-client-version-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the version number as a string.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.oci-client-version-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-2393">
    <p><strong>Example #1 <span class="function"><strong>oci_client_version()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"Client&nbsp;Version:&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">oci_client_version</span><span style="color: #007700">();&nbsp;</span><span style="color: #FF8000">//&nbsp;Client&nbsp;version:&nbsp;11.2.0.2<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.oci-client-version-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Oracle libraries before 10<em class="emphasis">g</em>R2 do not have the underlying
    functionality to get the client library version number.  The
    string &quot;Unknown&quot; will be returned in this case.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.oci-client-version-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="oci_server_version.html" class="function" rel="rdfs-seeAlso">oci_server_version()</a> - 返回服务器版本信息</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>